package cn.zcib.film.util;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 树节点属性类
 */
public class TreeNode {
    private Integer id; //菜单节点编号
    @JsonProperty(value = "parentId")
    private Integer pid;    //父节点菜单编号
    private String title;   //父节点菜单名称
    private String icon;    //菜单节点图标
    private String href;    //菜单路径

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public TreeNode() {
    }

    public TreeNode(Integer id, Integer pid, String title, String icon, String href) {
        this.id = id;
        this.pid = pid;
        this.title = title;
        this.icon = icon;
        this.href = href;
    }

    public TreeNode(Integer id, Integer pid, String title) {
        this.id = id;
        this.pid = pid;
        this.title = title;
    }
}
